package com.group.service.impl;

import com.group.pojo.Friends;
import com.group.pojo.UserAddress;
import com.group.mapper.UserAddressMapper;
import com.group.service.UserAddressService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author group
 * @since 2021-09-06
 */
@Service
public class UserAddressServiceImpl implements UserAddressService {

    @Autowired
    private UserAddressMapper userAddressMapper;


    @Override
    public boolean updateFriendsAddress1(UserAddress userAddress) {
        return userAddressMapper.updateFriendsAddress1(userAddress);
    }

    @Override
    public boolean deleteFriendsAddress1(String addressid[]) {
        return userAddressMapper.deleteFriendsAddress1(addressid);
    }

    @Override
    public boolean addFriendsAddress1(UserAddress userAddress) {
        return userAddressMapper.addFriendsAddress1(userAddress);
    }

    @Override
    public boolean defaultAddress11(Integer addressid) {
        return userAddressMapper.defaultAddress11(addressid);
    }

    @Override
    public boolean defaultAddress01(Integer addressid) {
        return userAddressMapper.defaultAddress01(addressid);
    }

    @Override
    public List<UserAddress> findAddress(Integer id) {
        return userAddressMapper.findAddress(id);
    }

    @Override
    public Integer findIdByAddress(String address) {
        return userAddressMapper.findIdByAddress(address);
    }

    @Override
    public String findAddressById(Integer id) {
        return userAddressMapper.findAddressById(id);
    }


}
